import request from '@/config/axios'
/**
 * 分页查询预充值费用
 */
export const pageQuery = (params) => {
  return request.get({ url: '/fee/fee-recharge/page-query', params })
}

/**
 * 分页查询预充值费用详情
 */
export const pageQueryDetail = (params) => {
  return request.get({ url: '/fee/fee-recharge/page-query-detail', params })
}

/**
 * 分页查询预充值费用流程
 */
export const pageQueryFlow = (params) => {
  return request.get({ url: '/fee/fee-recharge/page-query-flow', params })
}

/**
 * 预充值
 */
export const create = (data) => {
  return request.post({ url: '/fee/fee-recharge/create', data })
}

/**
 * 确认缴费
 */
export const confirm = (id) => {
  return request.post({ url: '/fee/fee-recharge/confirm?id=' + id })
}

/**
 * 根据老人ID获取单个预充值费用
 */
export const singleGetByElderId = (id) => {
  return request.get({ url: '/fee/fee-recharge/single-get-by-elder-id?id=' + id })
}
